package com.pirestupppai.utils;

import android.content.Context;
import android.content.SharedPreferences;

import com.pirestupppai.base.BaseApplication;
import com.pirestupppai.common.Constant;


/**
 * 本地数据操作类
 *
 * @author: xiaoluo
 * @date: 2017-02-17 14:54
 */
public class SharedPreferenceUtil {
    private final static String TAG = SharedPreferenceUtil.class.getSimpleName();

    public static SharedPreferences sp = BaseApplication.getAppContext()
            .getSharedPreferences(Constant.APP_NAME, Context.MODE_PRIVATE);

    public static SharedPreferences.Editor editor = sp.edit();

    public static SharedPreferences getSp() {
        return sp;
    }

    public static SharedPreferences.Editor getEditor() {
        return editor;
    }

}
